package com.hackintosh.observer.school;

/**
 * @description：具体观察者类：老师事件监听器
 * @author：twislyn
 * @date：Created in 2021/05/27
 * @modified By：
 * @version: 1.0
 */
public class Teacher implements BellEventListener {
    @Override
    public void heardBell(RingEvent event) {
        if (event.getSound()) {
            System.out.println("老师上课了...");
        } else {
            System.out.println("老师下课了...");
        }
    }
}
